<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:text="${msg}"></div>
<div th:utext="${msg}"></div>

<br>

<h2 th:each="items:${list}" th:text="${items}"></h2>
<h2 th:each="items:${list}">[[${items}]]</h2>

</body>
</html>